package win.bigwhale.sudoku;

import javafx.scene.Parent;
import javafx.scene.Scene;
import javafx.scene.layout.Pane;
import win.bigwhale.sudoku.view.ControlAndInfoPane;
import win.bigwhale.sudoku.view.Playfield;

public class GameScene extends Scene {
	private static Pane mPane = new Pane();
	private Playfield playfield = Playfield.getPlayField();
	private ControlAndInfoPane controlAndInfoPane = ControlAndInfoPane.getControlAndInfoPane();
	private static GameScene gameScene = new GameScene();

	private GameScene() {
		this(mPane, SudokuUtil.GAME_FIELD_WIDTH, SudokuUtil.GAME_FIELD_HEIGHT);
		mPane.getChildren().add(playfield);
		mPane.getChildren().add(controlAndInfoPane);
	}

	private GameScene(Parent root, double width, double height) {
		super(root, width, height);
	}

	public static GameScene getGameScene() {
		return gameScene;
	}

	public Playfield getPlayField() {
		return playfield;
	}
}
